common: guest_physmap_add_page()'s return value needs checking
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Sep 2021 09:00:30 +0000 (11:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Sep 2021 09:00:30 +0000 (11:00 +0200)
commita16cf950fc22fe269d9bbbae270203811bafab67
tree292c62beea1ec84a40a0345f32e4135f023b9f4d
parent604be1b333b1b66052ab9b0133f156890549a4f0
common: guest_physmap_add_page()'s return value needs checking

The function may fail; it is not correct to indicate "success" in this
case up the call stack. Mark the function must-check to prove all
cases have been caught (and no new ones will get introduced).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/grant_table.c
xen/common/memory.c
xen/include/asm-arm/p2m.h
xen/include/asm-x86/p2m.h